/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>

using namespace std;

int main_6()
{
    int num,single_digit,tens_digit,hundreds_digit;
    scanf("%d",&num);
    single_digit=num%10;
    tens_digit=(num/10)%10;
    hundreds_digit=num/100;
    printf("%03d\n",hundreds_digit+10*tens_digit+100*single_digit);
	return 0;
}
